﻿<Activity x:Class="TfsCloudDeploy.Workflow.Core.DeploymentService.Activities.TestBuild" this:TestBuild.EndpointConfigurationName="WSHttpBinding_IDeploymentServiceV1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:p="http://tempuri.org/" xmlns:p1="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel" xmlns:srs="clr-namespace:System.Runtime.Serialization;assembly=System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" xmlns:this="clr-namespace:TfsCloudDeploy.Workflow.Core.DeploymentService.Activities" xmlns:twcd="clr-namespace:TfsCloudDeploy.Workflow.Core.DeploymentService;assembly=TfsCloudDeploy.Workflow.Core" xmlns:twcd1="clr-namespace:TfsCloudDeploy.Workflow.Core.DeploymentService;assembly=TfsCloudDeploy.Workflow.Core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="EndpointConfigurationName" Type="x:String" />
    <x:Property Name="deploymentRequest" Type="InArgument(twcd:DeploymentRequest)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="TestBuildResult" Type="OutArgument(twcd:DeploymentResponse)" />
  </x:Members>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
  <Sequence>
    <Sequence.Variables>
      <x:Reference>__ReferenceID1</x:Reference>
      <x:Reference>__ReferenceID2</x:Reference>
    </Sequence.Variables>
    <p1:Send x:Name="__ReferenceID0" Action="http://tempuri.org/IDeploymentServiceV1/TestBuild" OperationName="TestBuild" ServiceContractName="p:IDeploymentServiceV1">
      <p1:Send.CorrelationInitializers>
        <p1:RequestReplyCorrelationInitializer>
          <p1:RequestReplyCorrelationInitializer.CorrelationHandle>
            <InArgument x:TypeArguments="p1:CorrelationHandle">
              <VariableValue x:TypeArguments="p1:CorrelationHandle">
                <VariableValue.Variable>
                  <Variable x:TypeArguments="p1:CorrelationHandle" x:Name="__ReferenceID2" />
                </VariableValue.Variable>
              </VariableValue>
            </InArgument>
          </p1:RequestReplyCorrelationInitializer.CorrelationHandle>
        </p1:RequestReplyCorrelationInitializer>
      </p1:Send.CorrelationInitializers>
      <p1:SendMessageContent>
        <InArgument x:TypeArguments="twcd:TestBuildRequest">[New TfsCloudDeploy.Workflow.Core.DeploymentService.TestBuildRequest() With { .deploymentRequest = deploymentRequest }]</InArgument>
      </p1:SendMessageContent>
      <p1:Send.EndpointConfigurationName>
        <PropertyReference x:TypeArguments="x:String" PropertyName="EndpointConfigurationName" />
      </p1:Send.EndpointConfigurationName>
    </p1:Send>
    <p1:ReceiveReply Request="{x:Reference __ReferenceID0}" Action="http://tempuri.org/IDeploymentServiceV1/TestBuildResponse">
      <p1:ReceiveMessageContent>
        <OutArgument x:TypeArguments="twcd:TestBuildResponse">
          <VariableReference x:TypeArguments="twcd:TestBuildResponse">
            <VariableReference.Variable>
              <Variable x:TypeArguments="twcd:TestBuildResponse" x:Name="__ReferenceID1" Name="tempResult" />
            </VariableReference.Variable>
          </VariableReference>
        </OutArgument>
      </p1:ReceiveMessageContent>
    </p1:ReceiveReply>
    <Assign>
      <Assign.To>
        <OutArgument x:TypeArguments="twcd:DeploymentResponse">[TestBuildResult]</OutArgument>
      </Assign.To>
      <Assign.Value>
        <InArgument x:TypeArguments="twcd:DeploymentResponse">[tempResult.TestBuildResult]</InArgument>
      </Assign.Value>
    </Assign>
  </Sequence>
</Activity>